﻿using EntityFramework.Entity.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YouTravel.Framework.Enums;

namespace YouTravel.DomainModels
{
    /// <summary>
    /// 专线信息
    /// </summary>
    public class Special : EntityBase
    {
        /// <summary>
        /// 专线名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 资质授权号
        /// YTSP+当前日期+3位随机数
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 分社ID
        /// </summary>
        public int BranchId { get; set; }
        /// <summary>
        /// 分社
        /// </summary>
        public Branch Branch { get; set; }
        /// <summary>
        /// 专线资金信息
        /// </summary>
        public virtual SpecialCapital SpecialCapital { get; set; }
        /// <summary>
        /// 专线状态
        /// 1-正常 2-冻结 3-销户
        /// </summary>
        public SpecialStatus Status { get; set; }
        /// <summary>
        /// 负责人姓名
        /// </summary>
        public string ChargeName { get; set; }
        /// <summary>
        /// 负责人手机
        /// </summary>
        public string ChargePhone { get; set; }
        /// <summary>
        /// 负责人证件名称
        /// </summary>
        public string ChargePaperType { get; set; }
        /// <summary>
        /// 负责人证件号码
        /// </summary>
        public string ChargePaperNumber { get; set; }
        /// <summary>
        /// 专线负责人开户银行
        /// </summary>
        public string ChargeBank { get; set; }
        /// <summary>
        /// 专线负责人银行卡号
        /// </summary>
        public string ChargeBankNumber { get; set; }
        /// <summary>
        /// 悠城公司卡开户银行
        /// </summary>
        public string CompanyBank { get; set; }
        /// <summary>
        /// 悠城公司卡银行卡号
        /// </summary>
        public string CompanyNumber { get; set; }
        /// <summary>
        /// 专线到期时间
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public int CreaterId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public virtual User Creater { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreaterName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新人Id
        /// </summary>
        public int UpdaterId { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public virtual User Updater { get; set; }
        /// <summary>
        /// 更新人姓名
        /// </summary>
        public string UpdaterName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
